home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / docshell / nsIWebPageDescriptor.h < prev   
C/C++ Source or Header  |  2006-05-08  |  4KB  |  122 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIWebPageDescriptor.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIWebPageDescriptor_h__
  6. #define __gen_nsIWebPageDescriptor_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIWebPageDescriptor */
  19. #define NS_IWEBPAGEDESCRIPTOR_IID_STR "6f30b676-3710-4c2c-80b1-0395fb26516e"
  20.  
  21. #define NS_IWEBPAGEDESCRIPTOR_IID \
  22.   {0x6f30b676, 0x3710, 0x4c2c, \
  23.     { 0x80, 0xb1, 0x03, 0x95, 0xfb, 0x26, 0x51, 0x6e }}
  24.  
  25. /**
  26.  * The nsIWebPageDescriptor interface allows content being displayed in one
  27.  * window to be loaded into another window without refetching it from the
  28.  * network.
  29.  *
  30.  * @status UNDER_REVIEW
  31.  */
  32. class NS_NO_VTABLE nsIWebPageDescriptor : public nsISupports {
  33.  public: 
  34.  
  35.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IWEBPAGEDESCRIPTOR_IID)
  36.  
  37.   enum { DISPLAY_AS_SOURCE = 1U };
  38.  
  39.   enum { DISPLAY_NORMAL = 2U };
  40.  
  41.   /**
  42.   * Tells the object to load the page specified by the page descriptor
  43.   *
  44.   * @return NS_OK            - 
  45.   *         NS_ERROR_FAILURE - 
  46.   */
  47.   /* void loadPage (in nsISupports aPageDescriptor, in unsigned long aDisplayType); */
  48.   NS_IMETHOD LoadPage(nsISupports *aPageDescriptor, PRUint32 aDisplayType) = 0;
  49.  
  50.   /**
  51.   * Retrieves the page descriptor for the curent document.
  52.   */
  53.   /* readonly attribute nsISupports currentDescriptor; */
  54.   NS_IMETHOD GetCurrentDescriptor(nsISupports * *aCurrentDescriptor) = 0;
  55.  
  56. };
  57.  
  58. /* Use this macro when declaring classes that implement this interface. */
  59. #define NS_DECL_NSIWEBPAGEDESCRIPTOR \
  60.   NS_IMETHOD LoadPage(nsISupports *aPageDescriptor, PRUint32 aDisplayType); \
  61.   NS_IMETHOD GetCurrentDescriptor(nsISupports * *aCurrentDescriptor); 
  62.  
  63. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  64. #define NS_FORWARD_NSIWEBPAGEDESCRIPTOR(_to) \
  65.   NS_IMETHOD LoadPage(nsISupports *aPageDescriptor, PRUint32 aDisplayType) { return _to LoadPage(aPageDescriptor, aDisplayType); } \
  66.   NS_IMETHOD GetCurrentDescriptor(nsISupports * *aCurrentDescriptor) { return _to GetCurrentDescriptor(aCurrentDescriptor); } 
  67.  
  68. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  69. #define NS_FORWARD_SAFE_NSIWEBPAGEDESCRIPTOR(_to) \
  70.   NS_IMETHOD LoadPage(nsISupports *aPageDescriptor, PRUint32 aDisplayType) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadPage(aPageDescriptor, aDisplayType); } \
  71.   NS_IMETHOD GetCurrentDescriptor(nsISupports * *aCurrentDescriptor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentDescriptor(aCurrentDescriptor); } 
  72.  
  73. #if 0
  74. /* Use the code below as a template for the implementation class for this interface. */
  75.  
  76. /* Header file */
  77. class nsWebPageDescriptor : public nsIWebPageDescriptor
  78. {
  79. public:
  80.   NS_DECL_ISUPPORTS
  81.   NS_DECL_NSIWEBPAGEDESCRIPTOR
  82.  
  83.   nsWebPageDescriptor();
  84.  
  85. private:
  86.   ~nsWebPageDescriptor();
  87.  
  88. protected:
  89.   /* additional members */
  90. };
  91.  
  92. /* Implementation file */
  93. NS_IMPL_ISUPPORTS1(nsWebPageDescriptor, nsIWebPageDescriptor)
  94.  
  95. nsWebPageDescriptor::nsWebPageDescriptor()
  96. {
  97.   /* member initializers and constructor code */
  98. }
  99.  
  100. nsWebPageDescriptor::~nsWebPageDescriptor()
  101. {
  102.   /* destructor code */
  103. }
  104.  
  105. /* void loadPage (in nsISupports aPageDescriptor, in unsigned long aDisplayType); */
  106. NS_IMETHODIMP nsWebPageDescriptor::LoadPage(nsISupports *aPageDescriptor, PRUint32 aDisplayType)
  107. {
  108.     return NS_ERROR_NOT_IMPLEMENTED;
  109. }
  110.  
  111. /* readonly attribute nsISupports currentDescriptor; */
  112. NS_IMETHODIMP nsWebPageDescriptor::GetCurrentDescriptor(nsISupports * *aCurrentDescriptor)
  113. {
  114.     return NS_ERROR_NOT_IMPLEMENTED;
  115. }
  116.  
  117. /* End of implementation class template. */
  118. #endif
  119.  
  120.  
  121. #endif /* __gen_nsIWebPageDescriptor_h__ */
  122.